﻿using System.Windows;
using System.Windows.Controls;

namespace WPFTestSolution.Pages.Controls.ContentControls {
    
    /**
     * https://www.bilibili.com/video/BV1bV411A7Eq?p=49
     * 049-Expander折叠控件(: HeaderedContentControl : ContentControl)
     * https://www.wpfsoft.com/2023/08/31/1652.html
     */
    public partial class _49_Expander_Page : Page {
        public _49_Expander_Page() {
            InitializeComponent();
            this.Title = "049-Expander折叠控件(: HeaderedContentControl : ContentControl)";
        }

        private void Expander_Expanded(object sender, RoutedEventArgs e) {
            this.TextBlock_Result.Text = "Expander展开";
        }

        private void Expander_Collapsed(object sender, RoutedEventArgs e) {
            this.TextBlock_Result.Text = "Expander隐藏";
        }
    }
}